package com.jone.phone.detail.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

import com.jone.phone.detail.R;
import com.jone.phone.detail.util.DateUtil;

public class NotifyView extends Activity {
	
	private TextView notify;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_LEFT_ICON);   
       
        setContentView(R.layout.notify);
        notify = (TextView) this.findViewById(R.id.notify_tip);
        
        
        int duration = this.getIntent().getIntExtra("duration", 0);    
        String desc = DateUtil.getDesc(duration);        
        notify.setText("温馨提示：您本次通话时长为"+desc);      
        
        getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, 
                R.drawable.icon);
	}
	
	
	
	public void onStop(){
    	this.finish();
    	super.onDestroy();
	}

}
